package org.javaymw.springboot.repository.config.impl;

import org.javaymw.springboot.repository.config.IRepositoryConfig;

/**
 * redis仓储配置实现类
 * Created by zhaoxinguo on 2018/1/23.
 */
public class RedisRepositoryConfig implements IRepositoryConfig {

    /**
     * redis所在主机ip和端口
     * 格式：ip:port
     * 默认值：127.0.0.1:6379
     */
    private String host = "172.18.20.221:6379";

    /**
     * redis密码，若无密码时，不需要配置
     * 默认值：null
     */
    private String pass = "6789@jkl";

    /**
     * redis数据库，不建议修改默认值
     * 默认值：2
     */
    private int db = 0;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getDb() {
        return db;
    }

    public void setDb(int db) {
        this.db = db;
    }
}
